import request from '@/utils/request'

// 查询发送短信配置列表
export function listAllSms(query) {
  return request({
    url: '/edu/allSms/list',
    method: 'get',
    params: query
  })
}

// 查询发送短信配置详细
export function getAllSms(id) {
  return request({
    url: '/edu/allSms/' + id,
    method: 'get'
  })
}

// 新增发送短信配置
export function addAllSms(data) {
  return request({
    url: '/edu/allSms',
    method: 'post',
    data: data
  })
}

// 修改发送短信配置
export function updateAllSms(data) {
  return request({
    url: '/edu/allSms',
    method: 'put',
    data: data
  })
}

// 删除发送短信配置
export function delAllSms(id) {
  return request({
    url: '/edu/allSms/' + id,
    method: 'delete'
  })
}
